import request from "@/api/request";


// 登录
export function userLogin(data) {
    return request({
        method: "POST",
        url: "api/u/login/",
        data
    });
}

// 注册
export function userRegister(data) {
    return request({
        method: "POST",
        url: "api/u/register/",
        data
    });
}
// 修改密码
export function updatapwd(id,data) {
    return request({
        method: "PUT",
        url: "api/u/user/"+ id +"/updatapwd/",
        data
    });
}

// 退出登录
export function userLogout() {
    return request({
        method: "GET",
        url: "api/u/logout/",
    });
}
